package com.thinkit.bigdata.web.service.statistics;

import com.thinkit.bigdata.web.model.result.HtmlResult;
import org.elasticsearch.index.query.BoolQueryBuilder;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

public interface RuleStaticsServer {

    BoolQueryBuilder getQuery(String logTxt, HttpServletRequest request);

    Map<String, List<Map<String, String>>> getRuleQuery(HttpServletRequest request, String type, String logTxt) throws Exception;

    HtmlResult getRuleCount(HttpServletRequest request, String logTxt) throws Exception;
}
